﻿using Transponder_Storage;

namespace Transponder_WebApp
{
    /// <summary>
    /// 
    /// </summary>
    public static class Cache
    {
        public static List<Transponder_Storage.DeviceInformation> Map { get; set; } = new List<Transponder_Storage.DeviceInformation>();

        /// <summary>
        /// 
        /// </summary>
        public static void Update()
        {
            Map.Clear();
            var db = new Db();
            var list= db.DeviceInformation
                 .ToList();
            Map.AddRange(list);
        }
    }
}
